<template class="container">
    <WindowTitleBar title="测试"></WindowTitleBar>
    <div onclick=OnClick v-bind:style="style"></div>
</template>

<script type="text/lua">
RegisterComponent("WindowTitleBar", "%vue%/Components/WindowTitleBar.html");

style = {
    width = 200,
    height = 200,
    ["background-color"] = "#ffffff",
}

function OnClick()
    if (style.width == 200) then
        style.width = 300;
    else 
        style.width = 200;
    end
    style = style;
end

</script>

<style>
.container {
    height: 100%; 
    width: 100%; 
    padding: 0px 2px 2px 2px;
    border: 1px solid #ffffff;
    /* background: url(Texture/Aries/Creator/keepwork/Window/dakuang_32bits.png#0 0 440 93:378 43 33 44); */
}
</style>